import Layout from "@/layout/index.vue";
import type { RouteRecordRaw } from "vue-router";
// import Demo from "@/views/demo/index.vue";
import Test from "@/views/page/test.vue";
// @ts-ignore
import tabBarModule from "@/router/modules/page";
// console.log(workWechat);
// debugger;
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: "home",
    children: [
      ...tabBarModule,
      {
        path: "test",
        name: "Test",
        component: Test,
        meta: {
          title: "测试"
        }
      }
    ]
  }
];

export default routes;
